<!doctype html>
<html>
  <head>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-132775238-1"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'UA-132775238-1');
    </script>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
    <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;600&family=Roboto+Mono&display=swap" rel="stylesheet">
    <link href='../index.css' rel='stylesheet'>
    <script type="text/javascript" src="../rapidoc-min.js"></script>
  </head>
  <body>
    <rapi-doc
      id = "thedoc"
      show-info = "true"
      spec-url = "../specs/petstore_extended.yaml"
      show-header="false" 
      render-style="focused"
      allow-try="false" 
      regular-font="Open Sans"
      mono-font = "Roboto Mono"
      show-method-in-nav-bar = "as-colored-block"
    > 
  
    <div slot="nav-logo">
      <div style="text-align: center; padding: 0 0 8px 0; color:#47AFE8"> Navigation Item Text </div>
      <div style="width:100%; display: flex;justify-content: center;">
        <button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('use-path-in-nav-bar', 'true')" >Path</button>
        <button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('use-path-in-nav-bar', 'false')" >Summary</button>
      </div>
      <div style="text-align: center; padding: 24px 0 8px 0; color:#47AFE8"> Display Method on NavBar as  </div>
      <div style="width:100%; display: flex;justify-content: center;">
        <button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('show-method-in-nav-bar', 'false')" >None</button>
        <button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('show-method-in-nav-bar', 'as-plain-text')" >Plain</button>
        <button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('show-method-in-nav-bar', 'as-colored-text')" >Colored</button>
        <button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('show-method-in-nav-bar', 'as-colored-block')" >Block</button>
      </div>

      <div style="text-align: center; padding: 24px 0 8px 0; color:#47AFE8"> Nav Item Active Marker style  </div>
      <div style="width:100%; display: flex;justify-content: center;">
        <button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('nav-active-item-marker', 'left-bar')" >Left Bar</button>
        <button class='btn medium' style="width:120px" onclick="document.getElementById('thedoc').setAttribute('nav-active-item-marker', 'colored-block')" >Colored Block</button>
      </div>
    </div>
  </rapi-doc>
  </body>
</html>
